package com.edgelight.pojo.resp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseResp {

    private Integer code;
    private String msg;
    private Object data;
    private Long total;



    public BaseResp SUCCESS(){
        return new BaseResp(1,"成功了",null,null);
    }
    public BaseResp ERROR(){
        return new BaseResp(0,"完犊子,再改改",null,null);
    }

}
